/* networkx style via kennedy + bootstrap + personal haxery. */
html, body {
  margin: 0; padding: 0;
  height: 100%; width: 100%;
  color: #222222; line-height: 18px;
  font-size: 13px; font-family: Arial;
}
a, a:visited { color: #15c; text-decoration: none; outline: none; }
a:hover, a:focus { color: #dd4b39; }
div, span, a, svg, code,
#view, #help, #create-pane, .hidden, textarea, input {
  -webkit-transition: all 0.23s;
  -moz-transition: all 0.23s;
  -o-transition: all 0.23s;
  transition: all 0.23s;
}
div, a, code, #view, #create-pane, .hidden {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
h2 { font-size: 16px; cursor: default; }

.btn, .btn:visited {
  position: relative; display: inline-block;
  margin: 4px; padding: 6px 18px; vertical-align: top; white-space: nowrap;
  color: #444; font-size: 11px; font-weight: bold;
  -webkit-border-radius: 2px;
  border: 1px solid #DCDCDC; border: 1px solid rgba(0,0,0,0.1);
  -webkit-border-radius:2px; -moz-border-radius: 2px; border-radius: 2px;
  background-color: #f5f5f5;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f5f5',EndColorStr='#f1f1f1');
  -webkit-user-select: none;
  -moz-user-select: none;
  cursor: default;
}
.btn:hover, .btn.hover {
  border: 1px solid #C6C6C6;
  color: #222;
  -webkit-transition: all 0.0s;
  -moz-transition: all 0.0s;
  -o-transition: all 0.0s;
  transition: all 0.0s;
  background-color: #f8f8f8;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
  progid:DXImageTransform.Microsoft.gradient(startColorStr='#f8f8f8',EndColorStr='#f1f1f1');
  -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
  box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
}
.btn:active, .btn.active {
  background-color: #f6f6f6;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -o-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: linear-gradient(top,#f6f6f6,#f1f1f1);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f6f6f6',EndColorStr='#f1f1f1');
  -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
}
.btn.disabled {
  background: none;
  color: #b8b8b8;
  border: 1px solid #f3f3f3;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: default;
  pointer-events: none;
}
.btn.red  {
  border: 1px solid transparent;
  color: #FFF;
  text-transform: uppercase;
  font-weight: 900; font-size: 11px;
  background-color: #d14836;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#d14836));
  background-image: -webkit-linear-gradient(top,#dd4b39,#d14836);
  background-image: -moz-linear-gradient(top,#dd4b39,#d14836);
  background-image: -ms-linear-gradient(top,#dd4b39,#d14836);
  background-image: -o-linear-gradient(top,#dd4b39,#d14836);
  background-image: linear-gradient(top,#dd4b39,#d14836);
}
.btn.red:hover {
  border-color: #b0281a;
  border-bottom-color: #AF301F;
  background-color: #c53727;
  background-image: -webkit-gradient(linear,left top,left 
  bottom,from(#dd4b39),to(#c53727));
  background-image: -webkit-linear-gradient(top,#dd4b39,#c53727);
  background-image: -moz-linear-gradient(top,#dd4b39,#c53727);
  background-image: -ms-linear-gradient(top,#dd4b39,#c53727);
  background-image: -o-linear-gradient(top,#dd4b39,#c53727);
  background-image: linear-gradient(top,#dd4b39,#c53727);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#dd4b39',EndColorStr='#c53727');
}
.btn.red:active {
  -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
  -moz-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
}
.btn.blue {
  border: 1px solid #3079ed;
  color: #FFF; font-weight: 900;
  background-color: #4d90fe;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#4787ed));
  background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);
  background-image: -moz-linear-gradient(top,#4d90fe,#4787ed);
  background-image: -ms-linear-gradient(top,#4d90fe,#4787ed);
  background-image: -o-linear-gradient(top,#4d90fe,#4787ed);
  background-image: linear-gradient(top,#4d90fe,#4787ed);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#4d90fe',EndColorStr='#4787ed');
}

input[type=text] {
  padding-left: 8px; color: #333; font-size: 13px; line-height: 29px;
  border: 1px solid #D9D9D9; border-top: 1px solid silver;
  display: block; width: 100%;
  -webkit-border-radius: 1px;
  -webkit-transition: all 0.218s;
  -moz-transition: all 0.218s;
  -o-transition: all 0.218s;
  transition: all 0.218s;
}
input[type=text]:hover {
  border: 1px solid #b9b9b9; border-top: 1px solid #a0a0a0;
  -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
}
input[type=text]:focus {
  -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
  -MOZ-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
  border: 1px solid #4d90fe;
  outline: none;
}
input[type=checkbox], input[type=radio], .fakecheckbox, .fakeradio{
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid #C6C6C6;
  margin:0;
  -webkit-border-radius:1px;
  -moz-border-radius:1px;
  border-radius:1px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  cursor:default;
  position:relative;
}
input[type=checkbox]:active, input[type=radio]:active,
.fakecheckbox:active, .fakeradio:active{
  border-color:#666;
  background:#ebebeb;
}
input[type=checkbox]:hover, input[type=radio]:hover, .fakecheckbox:hover, .fakeradio:hover{
  border-color:#666;
  -webkit-box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1);
  box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1);
}
input[type=radio], .fakeradio{ border-radius:50%; width: 15px; height: 15px; }
input[type=checkbox]:checked::after, .fakecheckbox.checked::after {
  content:url('gfx/check_no_box.png');
  display:block; position:absolute; top:-6px; left:-5px;
}

.divider { padding: 0 10px; color: #aaa; }

#snippet {
  display: block; width: 240px; height: 50px;
  margin: 4px; padding: 8px 12px;
  background-color: #222; color: #eee;
  border: 1px solid #333;
  font-size: 10px;
  resize: none; overflow: hidden;
  opacity: 0.8;
  cursor: default;
}
#snippet:hover { background-color: #000; }
#snippet:active, #snippet:focus {
  outline: none;
  border-color: #fcc;
}

::-webkit-scrollbar {
  background-color: #fff;
}
::-webkit-scrollbar-track:vertical {
  border-right: 0px solid transparent;
  border-left: 5px solid transparent;
  background-clip:padding-box;
  background-color: #eee;
}
::-webkit-scrollbar-track:horizontal {
  border-bottom: 0px solid transparent;
  border-top: 5px solid transparent;
  background-clip:padding-box;
  background-color: #eee;
}

/*----------------------------------------------------------------------------*/
/* Admin Style */
/*----------------------------------------------------------------------------*/
.topbar {
  position: fixed; z-index: 20; width: 100%; height: 30px;
  background-color: #222; color: #aaa;
  margin: 0; padding: 0;
  border-bottom: 2px solid #000;
  text-align: center;
  opacity: 0.9;
}
.title, .title:visited {
  position: absolute; left: 0;
  color: #888; font-size: 16px; line-height: 35px;
  padding-left: 20px; white-space: nowrap;
}
.title:hover, title:focus { text-decoration: none; color: #fff; }

#links {
  position: absolute; right: 0; top: 0;
  padding: 8px 8px; cursor: default;
}
  #links a { padding: 8px; color: #ccc; }
#links a:hover, .links a:focus { color: #fff; }

#help {
  position: fixed; z-index: 200; top: 32px; left: 206px;
  margin: 0; padding: 32px;
  background-color: #fff;
  min-width: 500px; max-width: 900px; width: 50%;
  height: 100%;
  overflow-y: scroll; overflow-x: none;
  opacity: 0.9;
}
#help-text {
/*  margin-top: 50px;  margin-left: 230px; */
  width: 100%;
  padding-bottom: 200px;
}

/* Dynamic AJAX sidebar with visualization list and edit forms. */
#sidebar {
  position: fixed; left: 0; top: 0; z-index: 15;
  margin-top: 30px; padding: 14px 0 16px 0px;
  width: 205px; height: 100%; border-right: 1px solid #ccc;
  overflow-x: hidden; overflow-y: auto;
  background-color: #fff; opacity: 1;
}
#sidebar.widened { /* width: 320px; */ }
#sidebar-content { position: absolute; margin: 0; width: 100%; }
#sidebar-content.shifted { margin-left: -300px; }

#btn-create { margin-left: 20px; }

#btn-refresh {
  background: transparent url('gfx/refresh.svg') center center no-repeat;
  height: 18px;
}

.tooltip {
  background: #222; position: absolute;
  color: #fff; font-size: 9px; border: 1px solid #000;
  margin: 0; padding: 2px 12px;
  opacity: 0.6;
}
.no-hover { display: none; }

#tooltip-refresh {
  left: -50px; z-index: 100;
  bottom: -26px;
}
/* List of graphs to select. */
#graph-list {
  position: absolute; left: 0; top: 50px;
  width: 100%; border-top: 1px solid #ddd;
}
.graph-entry {
  position: relative; display: block;
  margin: 0; padding: 8px 24px;
  color: #222; white-space: nowrap;
  cursor: default;
}
.graph-entry#pending {
  background-color: #f88;
}
.graph-entry:hover { background-color: #f1f1f1; }
.graph-entry.selected { padding-left: 32px; font-weight: bold; }

#edit-pane {
  display: none;
  position: absolute; z-index: 100;
  width: 173px; padding: 0 16px;
  left: 300px; top: 0;
  background-color: #fff;
  white-space: nowrap;
}
#edit-pane-content { padding-bottom: 16px; }

/* Primary graph view context. */
#view {
  background-color: #fff;
  position: absolute; top: 0; z-index: 0;
  width: 100%; height: 100%;
}
#ajax-view { position: absolute; margin: 0; padding: 0; width: 100%; height: 100%; }
.graph-frame {
  position: fixed; left: 0; top: 30px; margin: 0;
  width: 100%; height: 100%;
  border: none;
}

.text { text-align: left; margin: 40px 0 0 260px; padding: 8px 0 12px; }
.text.small { width: 400px; }
.center { margin: auto; }

#btnbar {
  position: fixed; z-index: 100;
  top: 36px; left: 220px;
}

/* Details view */
.graph-timestamp { display: block; }
.graph-refresh { position: absolute;  top: 0; right: 0; }
.graph-details {
  border: 1px solid #000; color: #fff;
  position: absolute; bottom: 0; right: 0;
  z-index: 50; margin: 8px; padding: 16px;
  background-color: #222;
  opacity: 0.8;
}
.graph-details a { color: #88d; }
.graph-details a:hover, .graph-details a:focus { color: #fff; }

.intro {
  position: absolute; top: 70px; left: 0;
  width: 100%; text-align: center; margin: auto;
}

.standalone-graph-frame {
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0;
  display: block;
  border: none;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  width: 800px;
  height: 500px;
  overflow: hidden;
}

.faded-counter {
  position: fixed; bottom: 150px; right: 80px;
  font-size: 200px;
  text-align: center; color: #eee; cursor: default;
}

.ruled{ border-bottom: 1px solid #ccc; }

label.radio {  display: block; }
#butterbar {
  position: fixed; z-index: 200; top: 20px; left: 240px;
  background:#F9EDBE; border:1px solid #F0C36D;
  font-size: 12px; padding: 4px 8px;
  -webkit-border-radius:2px;
  -moz-border-radius:2px;
  border-radius:2px;
  -webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*----------------------------------------------------------------------------*/
/* Graph edit / create forms.
/*----------------------------------------------------------------------------*/

.graph-form {
  border: none;
}

#graph-actions {
  display: inline-block;
  margin: 8px;
}

.controls { display: block; }
.controls input[type=text] { width: 163px; }
.form-label {
  display: block;
  margin: 0; line-height: 29px;
}
.form-entry { margin-bottom: 4px; }

/*----------------------------------------------------------------------------*/
/* Visualisation Style */
.hidden { opacity: 0.0 !important; }
svg#visualization {
  position: absolute;
  background-color: #f8f8f8;
  width: 100%; height: 100%;
}

/* Links */
.link {
  stroke: #ccc;
  position: absolute; z-index: 0;
  -webkit-transition: stroke 0.2s ease-in; //for chrome, safari
  -moz-transition: stroke 0.2s ease-in; //for mozilla firefox
  -o-transition: stroke 0.2s ease-in; //for opera
}
.link.hover {
  stroke: #aaa;
  stroke-width: 2px;
}

/* Nodes */
g.node {
  cursor: pointer;
  position: absolute; z-index: 10;
}

.node-circle {
  fill: #CCC;
  stroke: #999;
  stroke-width: 1.5px;
  position: absolute; z-index: 30;
}

.hovered-node {
  stroke-width:2px;
  stroke:#F00;
}
#hover-node circle {
  stroke-width:2px;
  stroke:#F00;
  fill: none;
}
circle:hover, .hovered-node circle, .drag-node circle {
  stroke: #666;
  stroke-width: 3px;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
}

/* Labels */
g.label {
  cursor: default;
  pointer-events: none;
  display: block;
  font: 10px sans-serif;
  -webkit-transition: opacity 0.5s ease-in; //for chrome, safari
  -moz-transition: opacity 0.5s ease-in; //for mozilla firefox
  -o-transition: opacity 0.5s ease-in; //for opera
  position: absolute; z-index: 0;
}
.label-text {
}
.label-shadow {
  stroke: #fff;
  stroke-width: 2px;
  stroke-linejoin: round;
}
.hovered-label {
  fill: #FF4444;
  opacity: 1;
  font-weight: bold;
  font-size: 12px;
}
.drag-label {
  fill: #4444FF;
  opacity: 1;
  font-weight: bold;
  font-size: 12px;
}

body .graph {
  border:none;
  margin:0px;
  padding:0px;
  width: 100%;
  height: 100%;
  overflow: none;
}

/* Graph */

#dbg {
position: fixed;
top:0; left:0
}
g.overlay {
  border: 1px solid #000;
}

.graph {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  background-color: #f1f1f1;
  border:none;
  margin:0px;
  padding:0px;
}
  .graph .information-panel {
    opacity: 0;
    position: absolute;
    z-index: 100;
    border: 1px solid #ccc;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 600px;
    left: 50%;
    margin-left: -300px;
    margin-top: 20px;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 300px;
    max-height: 90%;
    overflow: auto;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    padding: 10px;
    box-sizing: border-box; }
    .graph .information-panel .information-heading {
      font-size: 25px; }
    .graph .information-panel .information-short-description {
      font-weight: bold; }
    .graph .information-panel .more-information-link {
      display: none;
      float: left;
    }
    .graph .information-panel .information-youtube {
      text-align: center;
    }
    .graph .information-panel .credit-wrapper {
      display: block;
      float: right;
    }
  .graph .zoom-controls {
    position: absolute;
    z-index: 50;
    right: 20px;
    top: 20px; }
    .graph .zoom-controls .btn {
      min-width: 16px;
    }

.close {
  width: 20px;
  position: absolute;
  right: 20px;
}
